<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="content-type" content="text/html;charset=UTF-8">
    <title>dialog_box_demo</title>
    <style>
        .shade{
            position:fixed;
            top:0;
            right:0;
            bottom:0;
            left:0;
            opacity:0.6;
        }
        .delete{
            position:fixed;
            top:50%;
            left:50%;
            width:400px;
            height:220px;
            background-color:white;
            margin-left:-200px;
            margin-top:-200px;
        }
        .hide{
            display:none;
        }
    </style>
</head>
<body>
    <table>
        <tr>
            <th>IP</th>
            <th>编辑</th>
        </tr>
        <tr>
           <td>1.1.1.1</td>
            <td>删除</td>
        </tr>
        <tr>
            <td>2.2.2.2</td>
            <td>删除</td>
        </tr>
        <tr>
            <td>3.3.3.3</td>
            <td>删除</td>
        </tr>
    </table>
<!--遮罩层开始-->
    <div class="shade"></div>
<!--遮罩层结束-->

<!--删除层开始-->
    <div class="delete">
        <div>提示</div>
        <div>确定要删除吗</div>
        <div>
            <input type="button" value="取消">
            <input type="button" value="确定">
        </div>
    </div>
<!--删除层结束-->


</body>
</html>